<template>
  <div class="tl-group">
      <div class="tl-title">
        <div class="tl-title-des">
          <img class="tl-fire-icon" src="https://imgs.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png">
          <span>本周热门榜单</span>
        </div>
        <div class="tl-morebtn">
          <span>全部榜单</span>
          <span class="iconfont moreicon">&#xe62d;</span>
        </div>
      </div>
      <div class="tl-items">
        <ul class="tl-items-list">
          <li v-for="item of list" :key="item.id">
            <div class="tl-items-imgs">
              <img class="tl-items-img" :src=item.img>
            </div>
            <div class="tl-items-des">{{item.title}}</div>
            <div class="tl-items-prc">
              <em class="tl-items-prc-num">¥{{item.price}}</em>
              <span>起</span>
            </div>
          </li>
        </ul>
      </div>
  </div>
</template>

<script>
export default {
  name: 'TopList',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/varibles.styl'
.tl-group
  height: 4rem
  margin-top: .2rem
  color: #212121
  background: #fff
  .tl-title
    display: flex
    justify-content: space-between
    height: 1rem
    line-height: 1rem
    .tl-title-des
      font-size: $recTilte
      padding-left: .2rem
      .tl-fire-icon
        height: .3rem
        width: .3rem
        padding-bottom: .1rem
        padding-right: .1rem
    .tl-morebtn
      font-size: .17rem
      .moreicon
        font-size: .2rem
        padding: 0 .2rem 0 .1rem
  .tl-items
    height: 3rem
    overflow: scroll
    .tl-items-list
      display: flex
      font-size: .22rem
      margin: 0 .25rem 0 .25rem
    li
      padding-right: .2rem
      text-align: center
      .tl-items-img
        height: 2rem
        width: 2rem
      .tl-items-des
        height: .4rem
        line-height: .4rem
      .tl-items-prc-num
        color: #ff8300
        font-size: .28rem
        margin-right: .07rem
</style>
